package com.dsp.soundscape.util;

import java.util.Locale;

public class RestUtil {
	private RestUtil(){}
	
	private static String regex = "[^a-zA-Z0-9 -]";
	
	public static String convert(String pathVariable) {
		return pathVariable.replaceAll(regex, "").replace(' ', '-').toLowerCase(Locale.US);
	}
}